package com.zc.study.designPattern.创建型设计模式.factoryPattern.abstractFactory;

public class Test {
    public static void main(String[] args) {
        //使用抽象层定义
        SkinFactory factory;
        Button bt;
        TextField tx;
        ComboBox cb;
        factory = (SkinFactory) Xmlutil.getbean();
        bt = factory.createButton();
        tx = factory.createTextField();
        cb = factory.createComboBox();
        bt.display();
        tx.display();
        cb.display();
    }
}
